package com.aphrodite.io.sip.provider;

import java.io.IOException;

import com.aphrodite.io.sip.message.Message;
import com.aphrodite.io.sip.net.IpAddress;

/**
 * Transport is a generic transport service for SIP.
 */
interface Transport {
	/** Gets protocol type */
	public String getProtocol();

	/** Stops running */
	public void halt();

	/** Sends a Message to a destination address and port */
	public void sendMessage(Message msg, IpAddress dest_ipaddr, int dest_port) throws IOException;

	/** Gets a String representation of the Object */
	public String toString();
}
